function reward_item() {
	//private member variables
	var signature;
	var who;
	var link;
	var reward;
	var timestamp;
	var text;
	
	//function to pull data from 
	this.setLink = function(link) { 
		this.link = link;
		var str = link;
		str = str.split('%22');
		if (str.length > 1) {
			str = str[3];
			str = base64.decode(str);
			while (String(str.substr(0, str.length - 1)).lastIndexOf('}') != -1) { str = str.substr(0, str.length - 1) }
			var obj = JSON.parse(str);
			if (obj.frType)
				this.reward = obj.frType;
			if (obj.frId)
				this.signature = obj.frId;
		}
	};
	
	this.save = function() {
		if (this.signature) {
			$.indexedDB(DB_NAME).objectStore(REWARD_TABLE).add({ sig: this.signature, name: this.who, link: this.link, type: this.reward, text: this.text, });
		}
	};
	
	this.load = function(html) {
		var div = document.createElement('div');
		div.innerHTML = html;	//load html
		
		this.setLink('https://plus.google.com/u/0/' + $('div.EL.g-s-n-aa > a', div).attr('href'));
		this.who = $('a.Sg.Ob.Tc', div).text()
		this.text = $('span.CL', div).text();
		this.timestamp = Date.parse($('a.g-M-n.g-s-n-aa.ik.Bf', div).attr('title'));
		
		return $('div.E7a', div).attr('link_id') 
	}
	
	this.loadFromDB = function(cursorObj) {
		this.setLink(cursorObj.link);
		this.who = cursorObj.name;
		this.text = cursorObj.text;
		this.timestamp = cursorObj.text;
		return this;
	}
	
	//this.loadFromHistory = function(cursorObj) {
	//	this.setLink(cursorObj.link);
	//	this.who = cursorObj.name;
	//	this.text =  cursorObj.time;
	//}
}
